.rotate{
    transition: 0.3s ease;
    transform: rotate(180deg);
}